package cn.itsource.hrm.mapper;

import cn.itsource.hrm.domain.Tenant;
import cn.itsource.hrm.domain.TenantType;
import cn.itsource.hrm.query.TenantQuery;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yaosang
 * @since 2021-09-11
 */
public interface TenantMapper extends BaseMapper<Tenant> {

    List<Tenant> loadPageList(Page<TenantType> page, TenantQuery query);

    void saveTenantMeals(@Param("tenantId") Long tenantId, @Param("mealId")Long mealId);
}
